# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ifuzz
pkgver=1.0
pkgrel=1
pkgdesc='A binary file fuzzer with several options.'
groups=('blackarch' 'blackarch-fuzzer')
arch=('x86_64' 'aarch64')
url='http://www.fuzzing.org/'
license=('GPL2')
source=("http://www.fuzzing.org/wp-content/$pkgname.tar")
sha512sums=('807b4f981300d9908a00c59cb050e665577caa3b1468e5497c6ff3a030bc7475b12f586be312c5fe693bbbc889f5d758307febc448b1e9a447a2732f8bf816bd')

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" doc/README
}

